Compiling the uncompilable: A case for shell script compilation

نویسندگان

  • Daniel L. Wang
  • Charles S. Zender
  • Stephen F. Jenks
چکیده

Shells, as command interpreters, are the classical way for humans to interact with computing systems, and modern shell features have extended this basic functionality with higher-level programming language constructs. Although implementing compilation in these shell languages is generally unprofitable and intractable, many advantages, such as isolation, filesystem abstraction, security, portability, parallelization and locality optimization are possible, using standard compilation techniques. While compilation is not possible for all scripts, there exist shell scripts of a class that are, in practice, both profitable and tractable to compile and execute. This class of scripts is prevalent in the scientific computing community, where scripts are commonly used to automate data processing sequences. We describe a prototype shell compilation and implementation for these scripts, noting advantages and challenges, and illustrating the significant performance potential available. Our results show that shell compilation is a viable means of automatically identifying and exploiting high-level program parallelism using existing sequential script specification and without requiring reimplementation.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Compiling X3D for increased performance and safety

X3D is a powerful and expressive format for defining interactive 3D scenes. Interactive 3D applications, though, require more than just the scene definition; they require extremely complex interactions which are best modeled through scripts and they require a high frame-rate in order to give the user the illusion of fluid interactivity. In this paper we study two techniques that cover these two...

متن کامل

Fundamental Dimensions of Islamic New Civilization in Compilation of Country Development Documentations with Emphasis on the Territorial Spatial Development Plan

Our land, Islamic Iran, which is the mother of all our history, tradition and culture and has always remained steadfast in its historical mazes and upheavals, has not been in good condition for a long time. In such a situation, it is necessary for all those who have somehow risen from this land and have their own identity, to commit themselves to this situation in a committed and compassionate ...

متن کامل

A Compiler for the Tcl Language

Tcl is a highly dynamic language that is especially challenging to execute eeciently. The dual-language nature of the system enforced by the C callback mechanism makes traditional compilation and optimization un-realistic. In addition, the lack of formal data types (and therefore type checking) places severe limits on the ability to provide for eecient data storage at compile time. In this pape...

متن کامل

مطالعه تطبیقی مراحل دانشنامه‌ نگاری در دانشنامه جهان اسلام و دایره‌‌المعارف اسلام (چاپ لیدن)

Purpose: the present paper compares two reference books the Encyclopedia World of Islam &  Encyclopedia  of Islam– Leiden  with regard to the whole process of compiling the encyclopedia, and to conduct an evaluative content analysis . Methodology: This is a comparative survey and a study of content analysis. The data collection tool in the comparative survey section is a questionnaire, and in...

متن کامل

Approximation Techniques for Space-Efficient Compilation in Abductive Inference

We address the problem of approximately compiling propositional abduction problems (PAPs). We show intractability of compiling a PAP into a fixed-size representation, and of compiling a PAP to within a factor 2 > 0 of the compilation of minimal size. Although generating an approximate compilation is intractable in general, we describe a preference-based PAP for which order-of-magnitude smaller ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2008